package me.zhengjie.modules.workorder.service;

import me.zhengjie.modules.workorder.domain.TTasks;
import me.zhengjie.modules.workorder.service.dto.TAccidentQueryCriteria;
import me.zhengjie.modules.workorder.service.dto.TTasksDTO;
import me.zhengjie.modules.workorder.service.dto.TTasksQueryCriteria;
import org.springframework.data.domain.Pageable;

/**
* @author zcw
* @date 2019-08-10
*/
public interface TTasksService {

    /**
    * queryAll 分页
    * @param criteria
    * @param pageable
    * @return
    */
    Object queryAll(TTasksQueryCriteria criteria, Pageable pageable);

    /**
    * queryAll 不分页
    * @param criteria
    * @return
    */
    public Object queryAll(TTasksQueryCriteria criteria);
    
    public Object queryAllWithOrder(TAccidentQueryCriteria criteria);

    /**
     * findById
     * @param id
     * @return
     */
    TTasksDTO findById(Long id);

    /**
     * create
     * @param resources
     * @return
     */
    TTasksDTO create(TTasks resources);
    void create(java.util.List<TTasks> resources);

    /**
     * update
     * @param resources
     */
    void update(TTasks resources);

    /**
     * delete
     * @param id
     */
    void delete(Long id);
}